package com.lc.controller;

import com.lc.bean.ShoppingOrder;
import com.lc.service.ShoppingOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class ShoppingOrderController {
    @Autowired
    private ShoppingOrderService shoppingOrderService;

    @PostMapping("/shopselect/{id}")
    public List<ShoppingOrder> Shopselect(@PathVariable String id){

       List<ShoppingOrder> list= shoppingOrderService.selectById(id);

        return list;
    }
}
